﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TestSetPosition : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        var rtf = GetComponent<RectTransform>();
        var rect = rtf.rect;
        //rtf.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, 200);
        rtf.SetInsetAndSizeFromParentEdge(RectTransform.Edge.Left, 640-50, 200);
        //rtf.SetInsetAndSizeFromParentEdge(RectTransform.Edge.Top, 50, rect.height);
    }

}
